package com.sky.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.sky.entity.Setmeal;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface SetmealMapper extends BaseMapper<Setmeal> {


    @Select("select count(id) from setmeal where status = 1")
    Integer getSold();

    @Select("select count(id) from setmeal where status = 0")
    Integer getDiscontinued();
}
